<?php
class ORMpz_user extends ORMBase {
  public function __construct() {
    parent::__construct('pz_user');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    if (isset($object->track_id)) {
      $epObject->track_id =  $object->track_id;
    }
    if (isset($object->account)) {
      $epObject->account =  $object->account;
    }
    if (isset($object->password)) {
      $epObject->password =  $object->password;
    }
    if (isset($object->type)) {
      $epObject->type =  $object->type;
    }
    if (isset($object->email)) {
      $epObject->email =  $object->email;
    }
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->track_id = $epObject->track_id;
    $object->account = $epObject->account;
    $object->password = $epObject->password;
    $object->type = $epObject->type;
    $object->email = $epObject->email;
    return $object;
  }
}
?>
